<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'addBook.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style>
		*{
		  	font-family: "微软雅黑";
		  }
		body{
		  	background-image: url("images/bgcolor.png");
		}
		a{
  		text-decoration:none;
  		color:white;
  		}
	  	h2{
	  		font-family: "微软雅黑";
	  		margin-left:99px;
	  		  width: 200px;
			  height: 35px;
			  color: #2d456b;
			  font-size: 1.5rem;
			  text-align: left;
	  	}
	  	.penal{
	  		width:410px;
	  		height:420px;
	  		background: white;
	  		margin:140px auto;
	  		padding:53px;
	  		border-radius:20px;
	  		box-sizing: border-box;
	  		box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.4); 
	  	}
	  	.left{
  			clear:both;
			  border-bottom: 1px solid #2D456B;
			  height: 41px;
			  line-height: 41px;
			  float:left;
			  color: #666;
	  	}
	  	input[type=text]{
	  		border:0;
	  		color: #666;
			  height: 2.5625rem;
			  width: 16.8125rem;
			  text-indent: 3.125rem;
			  outline: none;
	  	}
	  	input[type=password]{
	  		border:0;
	  		color: #666;
			  height: 2.5625rem;
			  width: 16.8125rem;
			  text-indent: 3.125rem;
			  outline: none;
			  background: none;
	  	}
	  	.input{
  			float:left;
	  		  color: #666;
	  		  border-bottom: 0.0625rem solid #2D456B;
			  height: 2.5625rem;
			  width: 16.8125rem;
	  	}
	  	.b{
	   		border-bottom: none;
	  		outline: none;
	  		height: 2.5625rem;
			  border: none;
			  color: #fff;
			  width: 18.825rem;
			  text-align: center;
			  background-color: #2D456B;
			  text-indent: 0rem;
			  cursor:pointer;
			  font-family: 15px;
	  	}
	</style>
  </head>
  
  <body>
 <div class="penal">
		<h2>增加图书</h2>
  		<form action="addBookServlet" method="post">
  			<input value="${Id}" type="hidden" name="sellerId"/>
			<div class="left">书名</div><div class="input"><input type="text" placeholder="请输入书名" name="bookname" id="bookname"/></div>
			<div class="left">单价</div><div class="input"><input type="text" placeholder="请输入单价" name="price" id="price"/></div>
			<div class="left">作者</div><div class="input"><input type="text" placeholder="请输入作者" name="author" id="author"/></div>
			<div class="left">库存</div><div class="input"><input type="text" placeholder="请输入库存" name="inventory" id="inventory"/></div>
			<div class="left" style="float:none;cursor:pointer;border:none"><input type="submit" value="提交" class="b"/></div>
  		</form>
	</div>
  </body>
</html>
